using System;
using System.Data;
using System.Configuration;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DevExpress.Web.ASPxTabControl;
using DevExpress.Web.ASPxMenu;
using Indeco.G24.Data;
using Indeco.G24.Services;
using Indeco.G24.Data.SqlClient;
using Indeco.G24.Entities;

namespace Indeco.G24.Website.UserControls
{
    public partial class TinTucMoi : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                TinTucService tintucService = new TinTucService();
                int outcount;
                TList<TinTuc> newsTop = tintucService.GetPaged("nhacungcap is null", "thoidiemcapnhat DESC", 0, 10, out outcount);
                dataListTopOfNews.DataSource = newsTop;
                dataListTopOfNews.DataBind();
            }
            catch
            { }
        }
    }
}